﻿namespace DeepCompare.Tests
{
    public class TestClassWithOwnEquality : TestClassOne
    {
        protected bool Equals(TestClassWithOwnEquality other)
        {
            return new DeepComparer().Compare(this,
                other);
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            return GetType() == obj.GetType();
        }
    }
}